package main

import "fmt"

func main() {
	//test1()
	//test2()
	//test3()
	test4()
}

func test1() {
	a := [...]int{1, 2, 3}
	s := make([]int, 3)
	copy(s, a[:])
	s = append(s, 6)
	fmt.Println(s)
}

func test2() {
	arr := [...]int{34, 4, 5, 6, 6, 7}
	sss := make([]int, len(arr))
	copy(sss, arr[:])
	sss = append(sss, 100)
	fmt.Println(sss)
}

func test3() {
	arr := [...]int{1, 2, 2, 3, 4, 4}
	sss := make([]int, len(arr))
	copy(sss, arr[:])
	sss = append(sss, 78)
	fmt.Println(sss)
}

func test4() {
	arr := [...]int{1, 2, 3}
	fmt.Println(arr)

	ssss := make([]int, len(arr))
	fmt.Println(ssss)

	copy(ssss, arr[:])
	fmt.Println(ssss)
}
